<template>
  <div>
    <a-icon
      class="trigger"
      :type="baseData.collapsed ? 'menu-unfold' : 'menu-fold'"
      @click="() => (baseData.collapsed = !baseData.collapsed)"
    />
    <div class="icon">
      <img
        width="30"
        alt="logo"
        src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"
      />
      <h1>嘴强王者</h1>
      <span>
        <a-icon type="skin" />
      </span>
      <span>
        <a-icon type="setting" />
      </span>
      <span>
        <a-icon type="message" />
      </span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BaseHeader',
  props: ["baseData"],
  data() {
    return {
      
    };
  },
  methods: {
    // this.$router.push({ path:'/login/Login' })
  },
}
</script>

<style lang="less" scoped>
  .trigger {
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    transition: color .3s;
  }
  .icon {
    float: right;
    margin-right: 50px;
  }
  .icon h1 {
    margin-left: 10px;
    font-size: 15px;
    color: #fff;
    display: inline-block;
  }
  .icon span {
    margin-left: 10px;
    font-size: 18px;
    color: #fff;
    display: inline-block;
  }
</style>
